home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
qtawk
/
ansirsvg.exp
< prev
next >
Wrap
Text File
|
1989-04-28
|
2KB
|
72 lines
BEGIN {
#
# ANSI C reserved words
#
# expression for leader
ldr = /(^|[\s\t\*\(,])/;
# upper case letters
upr = /[A-Z]/;
# lower case letters
lwr = /[a-z]/;
# characters allowed in names
alwd = /[A-Za-z0-9_]/;
# abbreviation
f = /[fl]/;
# opening function parenthesis
o_p = /{_w}*\(/;
}
#
#
#1 <errno.h> reserved words
GROUP /{ldr}E{upr}{alwd}+/
#
#2 <ctype.h> reserved words
GROUP /{ldr}(is|to){lwr}{alwd}+{o_p}/
#
#3 <locale.h> reserved words
GROUP /{ldr}LC_{upr}{alwd}/
#
#4 <math.h> reserved words
GROUP /{ldr}a(cos|sin|tan2?){f}{o_p}/
#
#5 <math.h> reserved words
GROUP /{ldr}(cos|sin|tan)h?{f}{o_p}/
#
#6 <math.h> reserved words
GROUP /{ldr}(fr|ld)?exp{f}{o_p}/
#
#7 <math.h> reserved words
GROUP /{ldr}log(10)?{f}{o_p}/
#
#8 <math.h> reserved words
GROUP /{ldr}modf{f}{o_p}/
#
#9 <math.h> reserved words
GROUP /{ldr}pow{f}{o_p}/
#
#10 <math.h> reserved words
GROUP /{ldr}sqrt{f}{o_p}/
#
#11 <math.h> reserved words
GROUP /{ldr}ceil{f}{o_p}/
#
#12 <math.h> reserved words
GROUP /{ldr}(f|l)?abs{f}{o_p}/
#
#13 <math.h> reserved words
GROUP /{ldr}f(loor|mod){f}{o_p}/
#
#14 <signal.h> reserved words
GROUP /{ldr}SIG_{upr}{alwd}+/
#
#15 <string.h> reserved words
GROUP /{ldr}(str|mem){lwr}{alwd}+{o_p}/
#
#99 Variable Names Reserved by Committee for Standard Library
# ALL identifiers starting with '_'
GROUP /{ldr}_{alwd}+/ { printf("%u: %s\n",FNR,$0); }
FINAL {
printf("Lines Scanned: %lu\n",NR);
}